import 'package:flutter/material.dart';

import '../../../generated/l10n.dart';

class FunWidget extends StatelessWidget {
  final String title;
  final GestureTapCallback? onTap;

  const FunWidget({super.key, this.onTap, required this.title});

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      behavior: HitTestBehavior.translucent,
      onTap: onTap,
      child: Container(
        alignment: Alignment.center,
        width: 100,
        height: 100,
        decoration: BoxDecoration(
          color: Colors.blueGrey,
          borderRadius: BorderRadius.all(Radius.circular(10)),
        ),
        child: Text(title, style: TextStyle(fontSize: 20)),
      ),
    );
  }
}
